import request from '@/utils/request'

// 查询社保计提列表
export function listSbjt(query) {
  return request({
    url: '/basebill/sbjt/list',
    method: 'get',
    params: query
  })
}

// 查询社保计提详细
export function getSbjt(fid) {
  return request({
    url: '/basebill/sbjt/' + fid,
    method: 'get'
  })
}

// 获取流水号
export function getFNumber(){
  return request({
    url: 'basebill/sbjt/getFNumber',
    method: 'get',
  })
}

// 新增社保计提
export function addSbjt(data) {
  return request({
    url: '/basebill/sbjt',
    method: 'post',
    data: data
  })
}

// 修改社保计提
export function updateSbjt(data) {
  return request({
    url: '/basebill/sbjt',
    method: 'put',
    data: data
  })
}

// 删除社保计提
export function delSbjt(fid) {
  return request({
    url: '/basebill/sbjt/' + fid,
    method: 'delete'
  })
}

// 调用eas接口
export function importSbjt(fids) {
  return request({
    url: '/basebill/sbjt/importSbjt/' + fids,
    method: 'get'
  })
}
